home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / ACORNUSERS / CBSA / EDUCATION / WINDOW / h / IconData < prev    next >
Text File  |  1998-03-07  |  984b  |  58 lines

  1.  
  2. //-----------------------------------
  3. //             IconData.h
  4. //-----------------------------------
  5.  
  6.  
  7. #ifndef IconData_H
  8. #define IconData_H
  9.  
  10. union IconData
  11. {
  12.   char text[12];
  13.   char sprite_name[12];
  14.   
  15.   struct IndirectText
  16.   {
  17.     char *text;
  18.     char *filter;
  19.     int text_lenght;
  20.   } indirect_text;
  21.   
  22.   struct IndirectSprite
  23.   {
  24.     union
  25.     {
  26.     int *sprite;
  27.     char *sprite_name;
  28.     };
  29.     int *sprite_area;
  30.     int isname;
  31.   }indirect_sprite;
  32.   
  33.   struct IndirectMixte
  34.   {
  35.     char *text;
  36.     char *filter;
  37.     int text_lenght;
  38.   }indirect;
  39. };
  40.  
  41. struct IconBlock
  42. {
  43.   int xmin; int ymin;
  44.   int xmax; int ymax;
  45.   int flags;
  46. //------------------------- IconData -----------------------//
  47.   union
  48.   {
  49.     char text[12];
  50.     char sprite_name[12];
  51.     struct IconData::IndirectText indirect_text;   
  52.     struct IconData::IndirectSprite indirect_sprite;
  53.     struct IconData::IndirectMixte indirect;
  54.   };
  55. //------------------------------------------------------------
  56. }; 
  57. #endif
  58.